package com.cjq.mall.wallet.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 退款信息DTO
 */

@Data
@ApiModel("退款信息DTO")
public class WalletRefundDTO {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", name = "userId", example = "2")
    @NotNull
    private Long userId;

    /**
     * 交易类型
     */
    @ApiModelProperty(value = "交易类型", name = "type", example = "4")
    @NotNull
    private Integer type;

    /**
     * 对方Uid
     */
    @ApiModelProperty(value = "对方Uid", name = "toUid", example = "1")
    @NotNull
    private Long toUid;

    /**
     * 对方用户名
     */
    @ApiModelProperty(value = "对方用户名", name = "toName", example = "xxx")
    @NotNull
    private String toName;

    /**
     * 退款金额
     */
    @ApiModelProperty(value = "退款金额", name = "refundMoney", example = "20")
    @NotNull
    private BigDecimal refundMoney;
}
